package com.sugar.queryinfo.module.business.service.userbalancerecord;

import java.math.BigDecimal;
import java.util.*;
import javax.validation.*;
import com.sugar.queryinfo.module.business.controller.admin.userbalancerecord.vo.*;
import com.sugar.queryinfo.module.business.controller.admin.userextend.vo.UserExtendSaveReqVO;
import com.sugar.queryinfo.module.business.dal.dataobject.userbalancerecord.UserBalanceRecordDO;
import com.sugar.queryinfo.framework.common.pojo.PageResult;
import com.sugar.queryinfo.framework.common.pojo.PageParam;

/**
 * 余额变动记录 Service 接口
 *
 * @author Ysugar
 */
public interface UserBalanceRecordService {

    void insertBalanceRecord(UserExtendSaveReqVO reqVO, BigDecimal preBalance, BigDecimal postBalance);

    /**
     * 删除余额变动记录
     *
     * @param id 编号
     */
    void deleteUserBalanceRecord(Long id);

    /**
    * 批量删除余额变动记录
    *
    * @param ids 编号
    */
    void deleteUserBalanceRecordListByIds(List<Long> ids);

    /**
     * 获得余额变动记录
     *
     * @param id 编号
     * @return 余额变动记录
     */
    UserBalanceRecordDO getUserBalanceRecord(Long id);

    /**
     * 获得余额变动记录分页
     *
     * @param pageReqVO 分页查询
     * @return 余额变动记录分页
     */
    PageResult<UserBalanceRecordRespVO> getUserBalanceRecordPage(UserBalanceRecordPageReqVO pageReqVO);
}